<?php
/**
 * Created by PhpStorm.
 * User: cephei
 * Date: 12/12/15
 * Time: 4:21 PM
 */
namespace Plugins\DeliverHub;

use Core\PluginContainer;

class Register_DeliverHub{
    public function register(){
        PluginContainer::getInstance()->bind('deliverhub',function(){
            return new Plugin_DeliverHub();
        });
    }
    public function install(\Closure $callback){
        $config = new \stdClass();
        $config->name = 'deliverhub';
        $config->class = 'Plugins\\DeliverHub\\Register_DeliverHub';
        $config->enable = 1;
        $callback($config);
    }
}